package com.example.inventoryservice.WarehouseQueryDemo;

public class Warehouse {
    private Long id;
    private String name;
    private String inventoryOrg; // 库存组织
    private String accountingEntity; // 会计主体
    private boolean hasDelegation; // 是否有核算委托

    // 构造函数、getter和setter
    public Warehouse(Long id, String name, String inventoryOrg, String accountingEntity, boolean hasDelegation) {
        this.id = id;
        this.name = name;
        this.inventoryOrg = inventoryOrg;
        this.accountingEntity = accountingEntity;
        this.hasDelegation = hasDelegation;
    }

    // getter和setter方法
    public Long getId() { return id; }
    public String getName() { return name; }
    public String getInventoryOrg() { return inventoryOrg; }
    public String getAccountingEntity() { return accountingEntity; }
    public boolean isHasDelegation() { return hasDelegation; }
}
